<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<ul>
				<li v-for="(item,index) in fruits" :key="index">{{item}}----{{index+1}}</li>
			</ul>
		</div>
		<script src="../vue.js"></script>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#app",
				data: {
					fruits: ['苹果','西瓜','橘子','甘蔗','香蕉']
				},
				methods: {}
			})
		</script>
	</body>
</html>

